﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="QuanLyGianHang.aspx.cs" Inherits="QuanLyGianHang" %>
<%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly="CollectionPager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css" >
    .style1
    {
    	text-align:center;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
     <table width="100%"  bgcolor="#FF99CC">
        <tr>
            <td style="font-weight:bold; color:Blue; font-size:x-large;">Quản lý gian hàng</td>
        </tr>
    </table>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <asp:DataList ID="dtlGianHang" runat="server" RepeatColumns="1" 
        onitemcommand="dtlGianHang_ItemCommand" Width="100%" ShowHeader="true">
    <ItemTemplate>
        <asp:Label ID="lbID" runat="server" Text='<%# Eval("ID") %>' Width="15px" Height="18px" BorderColor="Blue" BorderStyle="Double" />
        <asp:TextBox ID="txtTenGianHang" runat="server" NavigateUrl='<%# Eval("ID", "ChiTietGianHang.aspx?ID={0}") %>' 
        Text='<%# Eval("TenGianHang") %>' ReadOnly="true" BackColor="DarkGray" TextMode="MultiLine" 
        ForeColor="Blue" Width="250px" Height="18px" Font-Bold="true"/>
        <asp:Label ID="lbTinhTrang" runat="server" Text='<%# Eval("TinhTrang") %>' Font-Bold="true" ForeColor="Red" />
        <asp:DropDownList ID="ddlTinhTrang" runat="server" Font-Bold="true" 
            Visible="false" >
            <asp:ListItem Text="True" Value="true" />
            <asp:ListItem Text="False" Value="false" />
        </asp:DropDownList>
        <asp:TextBox ID="txtDiaChi" runat="server" Text='<%# Eval("DiaChi") %>'  ReadOnly="true" BackColor="DarkGray" Width="150px" Height="18px"/>
        <asp:TextBox ID="txtSoDienThoai" runat="server" Text='<%# Eval("SoDienThoai") %>' ReadOnly="true" BackColor="DarkGray" Width="100px" Height="18px"/>
         <asp:ImageButton ID="imbEdit" runat="server" Width="25px" Height="25px" ImageUrl="~/Images/edit.png" CommandName="edit" />
        <asp:ImageButton  ID="imbDelete" runat="server" Width="25px" Height="25px" ImageUrl="~/Images/delete.png"  CommandName="delete" />
       
    </ItemTemplate>
   
 </asp:DataList>
        </ContentTemplate>

    </asp:UpdatePanel>


 <CC1:COLLECTIONPAGER id="CollectionPager3" runat="server" BackText="« Trang Trước" 
        FirstText="Đầu Tiên" LabelText="Trang :" LastText="Sau Cùng" 
        NextText="Trang Sau »" 
        ResultsFormat="Hiển Thị  Kết Quả Trang {0}-{1} (Tổng Số {2})">
    </CC1:COLLECTIONPAGER> 
 </asp:Content>
